#include <iostream>

struct Student{
    int num;
    char name[20];
    char sex;
    int age;
};
struct Student stu[3] = {
        {1001, "Helen", 'F', 18},
        {1002, "Jack", 'M', 20},
        {1003, "Eric", 'M', 21}
};

int main()
{struct Student * p;
    printf(" No.  Name                 sex age\n");
    for (p=stu; p<stu+3; p++)
        printf("%5d %-20s %2c %4d\n",p->num, p->name, p->sex, p->age);
    return 0;
}
